.class public Lcom/instagram/android/maps/e/a;
.super Ljava/lang/Object;
.source "PhotoMapsEditManager.java"


# static fields
.field private static a:Lcom/instagram/android/maps/e/a;


# instance fields
.field private b:Landroid/content/SharedPreferences;

.field private c:Landroid/content/SharedPreferences;

.field private d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation
.end field

.field private e:Lcom/instagram/android/maps/e/d;

.field private f:Lcom/instagram/android/maps/e/e;

.field private g:Z

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/maps/e/d;",
            ">;"
        }
    .end annotation
.end field

.field private i:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/maps/e/e;",
            ">;"
        }
    .end annotation
.end field

.field private j:Ljava/lang/String;

.field private k:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 41
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 34
    iput-boolean v2, p0, Lcom/instagram/android/maps/e/a;->g:Z

    .line 35
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->h:Ljava/util/List;

    .line 36
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->i:Ljava/util/List;

    .line 43
    const-string v0, "PhotoMapsEditManagerItemMap"

    invoke-static {v0}, Lcom/instagram/m/b/a/a;->a(Ljava/lang/String;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    .line 44
    const-string v0, "PhotoMapsEditManagerGeneralPrefs"

    invoke-static {v0}, Lcom/instagram/m/b/a/a;->a(Ljava/lang/String;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->c:Landroid/content/SharedPreferences;

    .line 45
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->c:Landroid/content/SharedPreferences;

    const-string v1, "MapsPrefOnOff"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/maps/e/a;->g:Z

    .line 47
    new-instance v0, Lcom/instagram/android/maps/e/b;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/e/b;-><init>(Lcom/instagram/android/maps/e/a;)V

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    .line 56
    new-instance v0, Lcom/instagram/android/maps/e/c;

    invoke-direct {v0, p0}, Lcom/instagram/android/maps/e/c;-><init>(Lcom/instagram/android/maps/e/a;)V

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->f:Lcom/instagram/android/maps/e/e;

    .line 65
    return-void
.end method

.method public static a()Lcom/instagram/android/maps/e/a;
    .locals 1

    .prologue
    .line 68
    sget-object v0, Lcom/instagram/android/maps/e/a;->a:Lcom/instagram/android/maps/e/a;

    if-nez v0, :cond_0

    .line 69
    new-instance v0, Lcom/instagram/android/maps/e/a;

    invoke-direct {v0}, Lcom/instagram/android/maps/e/a;-><init>()V

    sput-object v0, Lcom/instagram/android/maps/e/a;->a:Lcom/instagram/android/maps/e/a;

    .line 71
    :cond_0
    sget-object v0, Lcom/instagram/android/maps/e/a;->a:Lcom/instagram/android/maps/e/a;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/maps/e/a;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 15
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->h:Ljava/util/List;

    return-object v0
.end method

.method private a(Ljava/util/Collection;Z)V
    .locals 3
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;Z)V"
        }
    .end annotation

    .prologue
    .line 99
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 100
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 101
    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v0, p2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    goto :goto_0

    .line 103
    :cond_0
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 104
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    if-eqz v0, :cond_1

    .line 105
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    invoke-interface {v0}, Lcom/instagram/android/maps/e/d;->a()V

    .line 107
    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/maps/e/a;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 15
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->i:Ljava/util/List;

    return-object v0
.end method

.method private b(Z)V
    .locals 3
    .parameter

    .prologue
    .line 223
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 224
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 225
    invoke-interface {v1, v0, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    goto :goto_0

    .line 227
    :cond_0
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 228
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    if-eqz v0, :cond_1

    .line 229
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    invoke-interface {v0}, Lcom/instagram/android/maps/e/d;->a()V

    .line 231
    :cond_1
    return-void
.end method


# virtual methods
.method public a(Lcom/instagram/android/maps/e/d;)V
    .locals 1
    .parameter

    .prologue
    .line 168
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->h:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 169
    return-void
.end method

.method public a(Lcom/instagram/android/maps/e/e;)V
    .locals 1
    .parameter

    .prologue
    .line 172
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->i:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 173
    return-void
.end method

.method public a(Lcom/instagram/android/model/g;)V
    .locals 3
    .parameter

    .prologue
    .line 92
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 93
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    if-eqz v0, :cond_0

    .line 94
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    invoke-interface {v0}, Lcom/instagram/android/maps/e/d;->a()V

    .line 96
    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 205
    iput-object p1, p0, Lcom/instagram/android/maps/e/a;->j:Ljava/lang/String;

    .line 206
    return-void
.end method

.method public a(Ljava/util/Collection;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 110
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/maps/e/a;->a(Ljava/util/Collection;Z)V

    .line 111
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 81
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 83
    iput-object p1, p0, Lcom/instagram/android/maps/e/a;->d:Ljava/util/List;

    .line 84
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 85
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 86
    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x1

    invoke-interface {v1, v0, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    goto :goto_0

    .line 88
    :cond_0
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 89
    return-void
.end method

.method public a(Z)V
    .locals 2
    .parameter

    .prologue
    .line 180
    iput-boolean p1, p0, Lcom/instagram/android/maps/e/a;->g:Z

    .line 181
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->c:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "MapsPrefOnOff"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 184
    iget-boolean v0, p0, Lcom/instagram/android/maps/e/a;->g:Z

    if-nez v0, :cond_0

    .line 185
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 187
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    if-eqz v0, :cond_1

    .line 188
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    invoke-interface {v0}, Lcom/instagram/android/maps/e/d;->a()V

    .line 190
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->f:Lcom/instagram/android/maps/e/e;

    if-eqz v0, :cond_2

    .line 191
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->f:Lcom/instagram/android/maps/e/e;

    invoke-interface {v0, p1}, Lcom/instagram/android/maps/e/e;->a(Z)V

    .line 193
    :cond_2
    return-void
.end method

.method public b(Lcom/instagram/android/maps/e/d;)V
    .locals 1
    .parameter

    .prologue
    .line 196
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->h:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 197
    return-void
.end method

.method public b(Lcom/instagram/android/maps/e/e;)V
    .locals 1
    .parameter

    .prologue
    .line 201
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->i:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 202
    return-void
.end method

.method public b(Lcom/instagram/android/model/g;)V
    .locals 3
    .parameter

    .prologue
    .line 118
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 119
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    if-eqz v0, :cond_0

    .line 120
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    invoke-interface {v0}, Lcom/instagram/android/maps/e/d;->a()V

    .line 122
    :cond_0
    return-void
.end method

.method public b(Ljava/util/Collection;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 114
    const/4 v0, 0x1

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/maps/e/a;->a(Ljava/util/Collection;Z)V

    .line 115
    return-void
.end method

.method public b()Z
    .locals 2

    .prologue
    .line 176
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/maps/e/a;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/instagram/android/maps/e/a;->g:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public b(Ljava/util/List;)Z
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)Z"
        }
    .end annotation

    .prologue
    const/4 v1, 0x1

    .line 258
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 259
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 260
    iget-object v3, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v3, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v1

    .line 264
    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public c()Ljava/lang/String;
    .locals 1

    .prologue
    .line 209
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->j:Ljava/lang/String;

    return-object v0
.end method

.method public c(Ljava/util/Collection;)V
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 125
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 126
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 127
    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x1

    invoke-interface {v1, v0, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    goto :goto_0

    .line 129
    :cond_0
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 130
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    if-eqz v0, :cond_1

    .line 131
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->e:Lcom/instagram/android/maps/e/d;

    invoke-interface {v0}, Lcom/instagram/android/maps/e/d;->a()V

    .line 133
    :cond_1
    return-void
.end method

.method public c(Lcom/instagram/android/model/g;)Z
    .locals 3
    .parameter

    .prologue
    .line 156
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-virtual {p1}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method

.method public d(Ljava/util/Collection;)Ljava/util/List;
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation

    .prologue
    .line 136
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 137
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 138
    iget-object v3, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x1

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 139
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 142
    :cond_1
    return-object v1
.end method

.method public d()V
    .locals 1

    .prologue
    .line 214
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/maps/e/a;->b(Z)V

    .line 215
    return-void
.end method

.method public d(Lcom/instagram/android/model/g;)V
    .locals 1
    .parameter

    .prologue
    .line 160
    invoke-virtual {p0, p1}, Lcom/instagram/android/maps/e/a;->c(Lcom/instagram/android/model/g;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 161
    invoke-virtual {p0, p1}, Lcom/instagram/android/maps/e/a;->a(Lcom/instagram/android/model/g;)V

    .line 165
    :goto_0
    return-void

    .line 163
    :cond_0
    invoke-virtual {p0, p1}, Lcom/instagram/android/maps/e/a;->b(Lcom/instagram/android/model/g;)V

    goto :goto_0
.end method

.method public e(Ljava/util/Collection;)Ljava/util/List;
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;)",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation

    .prologue
    .line 146
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 147
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/g;

    .line 148
    iget-object v3, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-virtual {v0}, Lcom/instagram/android/model/g;->g()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x1

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v3

    if-nez v3, :cond_0

    .line 149
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 152
    :cond_1
    return-object v1
.end method

.method public e()V
    .locals 1

    .prologue
    .line 219
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/instagram/android/maps/e/a;->b(Z)V

    .line 220
    return-void
.end method

.method public f()Z
    .locals 1

    .prologue
    .line 234
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    return v0
.end method

.method public g()I
    .locals 3

    .prologue
    .line 238
    const/4 v0, 0x0

    .line 239
    iget-object v1, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    move v1, v0

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    .line 240
    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    .line 241
    add-int/lit8 v0, v1, 0x1

    :goto_1
    move v1, v0

    .line 243
    goto :goto_0

    .line 244
    :cond_0
    return v1

    :cond_1
    move v0, v1

    goto :goto_1
.end method

.method public h()I
    .locals 3

    .prologue
    .line 248
    const/4 v0, 0x0

    .line 249
    iget-object v1, p0, Lcom/instagram/android/maps/e/a;->b:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v2

    move v1, v0

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    .line 250
    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 251
    add-int/lit8 v0, v1, 0x1

    :goto_1
    move v1, v0

    .line 253
    goto :goto_0

    .line 254
    :cond_0
    return v1

    :cond_1
    move v0, v1

    goto :goto_1
.end method

.method public i()V
    .locals 1

    .prologue
    .line 268
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->d:Ljava/util/List;

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/e/a;->d(Ljava/util/Collection;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/maps/e/a;->k:Ljava/util/List;

    .line 269
    return-void
.end method

.method public j()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation

    .prologue
    .line 272
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->k:Ljava/util/List;

    .line 273
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/instagram/android/maps/e/a;->k:Ljava/util/List;

    .line 274
    return-object v0
.end method

.method public k()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/g;",
            ">;"
        }
    .end annotation

    .prologue
    .line 278
    iget-object v0, p0, Lcom/instagram/android/maps/e/a;->d:Ljava/util/List;

    invoke-virtual {p0, v0}, Lcom/instagram/android/maps/e/a;->e(Ljava/util/Collection;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method
